package com.test.model;

import java.util.Date;
import java.util.List;

/**
 * 用户
 * @author Administrator
 */
public class User {
	private String id;
	private String username;
	private String password;
	private byte sex;
	private String nickname;
	private byte age;
	private String mobile;
	private String address;
	private String note;
	private String qrCodeUrl;
	private List<FriendTag> friendTags;
	private List<Friend> friends;
	private List<UserGroup> userGroups;
	private Date createDate;
	private boolean deleted;
	private long version;

	/**
	 * 朋友标签
	 * @author Administrator
	 */
	public static class FriendTag {
		private String name;
		private int priority;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getPriority() {
			return priority;
		}

		public void setPriority(int priority) {
			this.priority = priority;
		}
	}

	/**
	 * 用户组关系
	 * @author Administrator
	 */
	public static class UserGroup {
		private String groupNameAlias;
		private String groupId;
		private String nickname;
		private int priority;
		private boolean avoidDisturb;
		private boolean topChat;
		private boolean deleted;

		public String getGroupNameAlias() {
			return groupNameAlias;
		}

		public void setGroupNameAlias(String groupNameAlias) {
			this.groupNameAlias = groupNameAlias;
		}

		public String getGroupId() {
			return groupId;
		}

		public void setGroupId(String groupId) {
			this.groupId = groupId;
		}

		public String getNickname() {
			return nickname;
		}

		public void setNickname(String nickname) {
			this.nickname = nickname;
		}

		public boolean isDeleted() {
			return deleted;
		}

		public void setDeleted(boolean deleted) {
			this.deleted = deleted;
		}

		public int getPriority() {
			return priority;
		}

		public void setPriority(int priority) {
			this.priority = priority;
		}

		public boolean isAvoidDisturb() {
			return avoidDisturb;
		}

		public void setAvoidDisturb(boolean avoidDisturb) {
			this.avoidDisturb = avoidDisturb;
		}

		public boolean isTopChat() {
			return topChat;
		}

		public void setTopChat(boolean topChat) {
			this.topChat = topChat;
		}
	}

	/**
	 * 用户朋友
	 * @author Administrator
	 */
	public static class Friend {
		private String alias;
		private String tagName;
		private String userId;
		private Date createDate;
		private boolean avoidDisturb;
		private boolean topChat;
		private boolean inBlacklist;

		public String getAlias() {
			return alias;
		}

		public void setAlias(String alias) {
			this.alias = alias;
		}

		public String getTagName() {
			return tagName;
		}

		public void setTagName(String tagName) {
			this.tagName = tagName;
		}

		public String getUserId() {
			return userId;
		}

		public void setUserId(String userId) {
			this.userId = userId;
		}

		public Date getCreateDate() {
			return createDate;
		}

		public void setCreateDate(Date createDate) {
			this.createDate = createDate;
		}

		public boolean isAvoidDisturb() {
			return avoidDisturb;
		}

		public void setAvoidDisturb(boolean avoidDisturb) {
			this.avoidDisturb = avoidDisturb;
		}

		public boolean isTopChat() {
			return topChat;
		}

		public void setTopChat(boolean topChat) {
			this.topChat = topChat;
		}

		public boolean isInBlacklist() {
			return inBlacklist;
		}

		public void setInBlacklist(boolean inBlacklist) {
			this.inBlacklist = inBlacklist;
		}

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public byte getSex() {
		return sex;
	}

	public void setSex(byte sex) {
		this.sex = sex;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public byte getAge() {
		return age;
	}

	public void setAge(byte age) {
		this.age = age;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public List<FriendTag> getFriendTags() {
		return friendTags;
	}

	public void setFriendTags(List<FriendTag> friendTags) {
		this.friendTags = friendTags;
	}

	public List<Friend> getFriends() {
		return friends;
	}

	public void setFriends(List<Friend> friends) {
		this.friends = friends;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public List<UserGroup> getUserGroups() {
		return userGroups;
	}

	public void setUserGroups(List<UserGroup> userGroups) {
		this.userGroups = userGroups;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getQrCodeUrl() {
		return qrCodeUrl;
	}

	public void setQrCodeUrl(String qrCodeUrl) {
		this.qrCodeUrl = qrCodeUrl;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}
	

}
